infinite scrolling problem react js